package com.itheima.consumer.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author slacker
 * @create 2024-12-27
 */
//@Component
public class MqMessageListener {
    @RabbitListener(queues = {"test"})
    public void onMessage(String msg){
        System.out.println(msg);
    }
}
